package com.sumainfor.pc.epc.controller.MarketFeign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.service.impl.FeignMkt.HousingPlanServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 功能描述:
 * 房源配置
 * @Auther: zhlu
 * @Date: 2018/12/26 11:34
 * @Description:
 */
@RestController
@RequestMapping("/plan")
public class PlanHousingController {

    @Autowired
    HousingPlanServiceImpl housingPlan;

    /**
     * 功能描述:
     * 收房专员已读修改房源配置表状态为已读
     * @Author zhlu
     * @Description //TODO
     * @Date 2018/12/26 11:39
     */
    @ResponseBody
    @RequestMapping(value = "/updateHousingPlanRead",method = RequestMethod.POST)
    public JsonResult updateHousingPlanRead(@RequestBody Map<String,Object> params){
        JsonResult result=new JsonResult();
        if(housingPlan.updateHousingPlanRead(params)){
            result.putSuccess("修改状态已读!");
        }else{
            result.putFailed("服务器繁忙,请稍后重试！");
        }
        return result;
    }
}
